package top.wettis.chat.pojo.DO;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 用户提问历史记录
 * </p>
 *
 * @author wettis
 * @since 2023-04-12
 */
@Getter
@Setter
@TableName("history_record")

public class HistoryRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @TableField("question")
    private String question;

    @TableField("answer")
    private String answer;

    @TableField("query_time")
    private LocalDate queryTime;

    @TableField("user_id")
    private Integer userId;


    @TableField("is_del")
    @TableLogic
    private Integer del;
}
